---
category: DOM
created: '2020-04-19'
title: Go back to the previous page
updated: '2021-10-13'
---

**JavaScript version**

```js
history.back();

// Or
history.go(-1);
```
